let total = parseInt($("#total").val());
let pageSize = parseInt($("#pageSize").val());
let pageNum = parseInt($("#pageNum").val());
let target = $("#target").val();
$(function () {
    let properties = {
        num_edge_entries: 3,
        num_display_entries: 5,
        callback: pageSelectCallBack,
        items_per_page: pageSize,
        current_page: pageNum,
        prev_text: "上一页",
        next_text: "下一页"
    };
    $("#pagination").pagination(total, properties);
});
let pageSelectCallBack = function (page_index) {
    let pageNum = (page_index + 1);
    window.location.href = "/" + target + pageNum;
    return false;
};